﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Grasshopper.Kernel;
using Rhino.Geometry;

namespace D009_AdditionMenu
{
    public class Param_Human : GH_PersistentParam<GH_Human>
    {
        protected override System.Drawing.Bitmap Icon => Properties.Resources.human;
        public override Guid ComponentGuid => new Guid("08CE8EC0-6219-4F94-A5FB-5C436B27D124");

        public Param_Human()
          : base("Human", "h",
              "人",
              "MyPlugin", "AdditionMenu")
        {
        }

        /// <summary>
        /// 处理右键菜单中的添加一个数据
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        protected override GH_GetterResult Prompt_Singular(ref GH_Human value)
        {
            value = new GH_Human();
            return GH_GetterResult.success;
        }

        /// <summary>
        /// 处理右键菜单中的添加多个数据
        /// </summary>
        /// <param name="values"></param>
        /// <returns></returns>
        protected override GH_GetterResult Prompt_Plural(ref List<GH_Human> values)
        {
            return GH_GetterResult.cancel;
        }
    }
}